package com.it.sun.esaychat.file.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author sunmannian
 * @since 2020-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("e_chat_common_file")
@ApiModel(value="FileEntity对象", description="")
@Builder
public class FileEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id_", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "文件所在服务器")
    @TableField("host_")
    private String host;

    @ApiModelProperty(value = "端口号")
    @TableField("port_")
    private Integer port;

    @ApiModelProperty(value = "组名称")
    @TableField("group_")
    private String group;

    @ApiModelProperty(value = "路径")
    @TableField("path_")
    private String path;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time_", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time_", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(value = "delete_", fill = FieldFill.INSERT)
    @TableLogic
    private Integer delete;

    @ApiModelProperty(value = "上传人")
    @TableField("create_id_")
    private String createId;


}
